program to remove consecutive blank spaces